<template>
  <div>
    <div class="child">
      {{myCount}}
      <br />
      <el-button type="primary" @click="childBtnClick">减法</el-button>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    myCount: {
      type: Number,
      default: 0
    },
  },
  methods : {
    childBtnClick(){
      this.$emit("jianfa", {"id" : 10001})
    }
  }
}
</script>

<style scoped>
div.child{
  width: 600px;
  height: 200px;
  margin: 20px auto;
  border: 1px solid #0d4cea;
  text-align: center;
  font-size: 16px;
}
</style>
